package com.example.serviceheadlines.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tangyuan.model.HeadlinesImages;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HeadlinesImagesMapper extends BaseMapper<HeadlinesImages> {
    Integer insertImages(@Param("urlList") List<String> urlList, @Param("itemId") Long itemId);

    List<String> selectImageList(Long itemId);

    void deleteByHeadlinesId(Long headlinesId);

    List<HeadlinesImages> getHeadlinesImagesByItemId(List<Long> itemIds);
}
